package com.cr.crsystem.system.service;

import com.cr.crsystem.common.utils.Result;
import com.cr.crsystem.system.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cr.crsystem.system.model.LoginModel;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author su
 * @since 2022-06-21
 */

public interface UserService extends IService<User> {

    User saveUser(User registerUser);

    boolean deleteUser(Integer id);

    boolean editUser(User user);

    Result<?> checkUserIsEffective(User user, LoginModel loginModel);

    boolean checkUsername(Integer userId, String username);
}
